#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
int tmp[1001];
int *const merge_sort(int* p, int l, int r) {
    assert(p);
    if (l >= r)return p;
    int mid = r + l >> 1;
    merge_sort(p, l, mid), merge_sort(p, mid + 1, r);
    int k = 0, i = l, j = mid + 1;
    while (i <= mid && j <= r)
        tmp[k++] = p[i] < p[j] ? p[i++] : p[j++];
    while (i <= mid)
        tmp[k++] = p[i++];
    while (j <= r)
        tmp[k++] = p[j++];
    for (i = l, k = 0; i < r + 1; i++, k++)
        p[i] = tmp[k];
     
}

int main() {
    int n;
    scanf("%d", &n);
    int arr[100];
    for (int i = 0; i < n; i++)
        scanf("%d",arr + i);
    merge_sort(arr, 0, n - 1);
    for (int i = 0; i < n; i++)
        printf("%d ",arr[i]);
    return 0;

}

